package org.spbsu.apco.common;

import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;
import javax.ws.rs.core.MediaType;

/**
 * User: solozobov
 * Date: 12.01.13
 */

/**
 * Service authorizes and identifies clients
 */
@Path("/authorization")
public interface AuthorizationService {
    /**
     * @param threadsCount number of threads that client allows to use
     * @return string identifier assigned to user
     */
    @GET
    @Path("/getid")
    @Produces({MediaType.TEXT_PLAIN})
    public String getId(@QueryParam("threads-count") int threadsCount);
}
